/*
   Copyright (c) 2020 Shanghai Xuanzi Technology Co. Ltd https://xuanzi.ltd
   XZUnitTest is licensed under the Mulan PSL v1.
   You can use this software according to the terms and conditions of the Mulan PSL v1.
   You may obtain a copy of Mulan PSL v1 at:
      http://license.coscl.org.cn/MulanPSL
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
   PURPOSE.
   See the Mulan PSL v1 for more details. 
 */

package xuanzi.h5.unittest;

/**
 * 控制台输出
 * @author 
 *
 */
public class Console {

	public Console() {
		// TODO Auto-generated constructor stub
	}
	
	
	public static native void assertLog(Object info)/*-{
		console["assert"](info);
	}-*/;
	
	public static native void debug(Object info)/*-{
		console.error(info);
	}-*/;
	
	public static native void error(Object info)/*-{
		console.error(info);
	}-*/;
	
	public static native void warn(String info)/*-{
		console.warn(info);
	}-*/;
	
	public static native void log(String info)/*-{
		console.log(info);
	}-*/;
	
	public static native void log(Object info)/*-{
		console.dir(info);
	}-*/;
	
	public static native void log(Object info,String css)/*-{
		console.log(info,css);
	}-*/;

	public static native void log(Object info,String css,String css2)/*-{
		console.log(info,css,css2);
	}-*/;

	public static void pass(String string) {
		log("%c"+string,"color:green");
	}

}
